AUX_SOURCE_DIRECTORY(src LIB_STORAGE_PD_LOG_SRC)
list(SORT LIB_STORAGE_PD_LOG_SRC)

set(PD_LOG_PARSE pd_log_parse_open)
ADD_LIBRARY(${PD_LOG_PARSE} SHARED ${LIB_STORAGE_PD_LOG_SRC})

INCLUDE_DIRECTORIES(inc)
INCLUDE_DIRECTORIES(${GLIB_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(../smlib)
INCLUDE_DIRECTORIES(../platform)

target_link_libraries(${PD_LOG_PARSE}
    PUBLIC ${GLIB_LIBRARIES}
    PUBLIC platform_open
)

SET_TARGET_PROPERTIES(${PD_LOG_PARSE} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES(${PD_LOG_PARSE} PROPERTIES VERSION 0.1.0 SOVERSION 0)

INSTALL(TARGETS ${PD_LOG_PARSE} LIBRARY DESTINATION usr/lib64)

